import _import from './_import'
import NavbarLayout from '@/views/layout/NavbarLayout'

const routes = [
  {
    path: '/404',
    component: _import('errorPage/404')
  },
  {
    path: '/',
    component: NavbarLayout,
    children: [{
      path: '',
      name: 'rechargeHome',
      component: _import('index/index'),
      meta: {
        title: 'rechargeHome',
        jssdk: true,
        keepAlive: true,
        scrollTop: 0,
        tabbarIndex: 0
      }
    }, {
      path: 'pay',
      name: 'rechargePay',
      component: _import('pay/index'),
      meta: {
        title: 'rechargePay',
        jssdk: true,
        keepAlive: true,
        scrollTop: 0,
        tabbarIndex: 1
      }
    }, {
      path: 'authorize',
      name: 'authorize',
      component: _import('authorize/index'),
      meta: {
        title: 'authorize',
        jssdk: true,
        keepAlive: true,
        scrollTop: 0,
        tabbarIndex: 1
      }
    }]
  },
  {
    path: '*',
    redirect: '/404'
  }
]

export default routes
